package com.ly.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import com.anti.mapper.AntiAccountMapper;
import com.anti.model.AntiAccount;
import com.ly.service.UserService;

import io.seata.core.context.RootContext;
@RestController
public class UserServiceImpl implements UserService {
	
	@Autowired
	private AntiAccountMapper antiAccountMapper;
	
	@Override
	public void add(AntiAccount antiAccount) {
		//RootContext.bind(antiAccount.getCreateBy());
		antiAccount.setCreateBy(null);
		antiAccountMapper.insert(antiAccount);
		
	}

}
